<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="../js/Suggest.js" type="text/javascript"></script>
<script src="../js/Content.min.js" type="text/javascript"></script>
</head>
<body>
	<form action="<%=request.getContextPath() %>/room/room!pre.action">
		<div id="header">
			<input type="hidden" name="room.rentPriceID" id="rentid" value="${room.rentPriceID}"/>
			<input type="hidden" name="room.dynamicFields.rentfrom" id="rentfrom" value="${room.dynamicFields.rentfrom}"/>
			<input type="hidden" name="room.dynamicFields.rentend" id="rentend" value="${room.dynamicFields.rentend}"/>
			<input type="hidden" name="room.roomTypeID" id="roomTypeId" value="${room.roomTypeID}"/>
			<input type="hidden" name="room.roomType" id="roomType" value="${room.roomType}"/>
			${basePrice }

			<div id="contentbox">
		<div id="leftbox">
			<div id="sechouseContop">
				<ul>
				  <li style="background:url(/images/sechousesearchico.gif) no-repeat 0% 50%; padding-left:20px;"><input  id="txtSearch"  runat="server" type="text"  class="inputD" value="在结果中筛选"/></li>
				  <li style="padding-top:0px !important; padding-top:1px;"><a href="javascript:void(0)" onclick="fixSearchText();"><img src="/images/sechousesearchico01.gif" alt="二手房" align="absmiddle" /></a></li>
				  <li style="padding-top:2px; padding-left:10px;"><select id="dlDays" onchange="fixPuDate(this.value)"><option>按发布时间筛选</option><option value="3">3天内</option><option value="7">7天内</option><option value="30">30天内</option></select>
				  <select id="ddlAge" onchange="fixAge(this.value)">
				  <option value="0,0">按房龄筛选</option>
				  <option value="1,2">2年内</option>
				  <option value="3,5">3到5年</option>
				  <option value="6,10">6到10年</option>
				  <option value="10,15">10到15年</option>
				  <option value="16,100">15年以上</option>
				  </select>
				  </li>
				</ul>
			</div>
			
			<div id="sechouseConmid">
				<ul>
					<li><a id="0" onclick="fixSourceType(this.id)" href="javascript:void(0)">全部房源</a></li>
					<li><a id="1" onclick="fixSourceType(this.id)"  href="javascript:void(0)">急售房源</a></li>
					<li><a id="2" onclick="fixSourceType(this.id)"  href="javascript:void(0)">新推房源</a></li>
					<li><a id="3" onclick="fixSourceType(this.id)"  href="javascript:void(0)">多图房源</a></li>
					<li><a target="_blank" href="../Map/Rent.html">地图模式</a></li>
				</ul>
			</div>
			
			<div id="sechousePre">
				<ul>
					<li><a href="#"><img src="/images/secsearchconpre01.gif" align="absmiddle"/></a> <label id="lblPageIndex" runat="server">1</label> <a href="javascript:void(0)"><img src="/images/secsearchconpre02.gif" align="absmiddle"/></a></li>
				</ul>
			</div>
			
			<div id="sechousePx">
				<ul>
					<li>共有<span><label id="lblHouseCount" runat="server"></label></span>套符合要求的房子&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;排序方式：
					<select id="dllOrderBy" onchange="fixOrderBy(this.value);">
					  <option value="0">默认排序方式</option>
					  <option value="1">面积从大到小</option>
					  <option value="2">面积从小到大</option>
					  <option value="3">总价从高到低</option>
					  <option value="4">总价从低到高</option>
					  <option value="5">发布时间从新到旧</option>
					</select> <a href="javascript:void(0)" onclick="fixOrderBy('3');"><img src="/images/peice.gif" align="absmiddle"/></a> <a href="javascript:void(0)" onclick="fixOrderBy('1');"><img src="/images/mianj.gif" align="absmiddle"/></a> <a href="javascript:void(0)" onclick="fixOrderBy('1');"><img src="/images/danj.gif" align="absmiddle"/></a></li>
				</ul>
			</div>
			
		<s:iterator value="page.pageList" id="bean">
			<div id="houseinfobox">
				<div id="sechouseinfobox">
					<dl>
						<dt><a target="_blank" href="<%=request.getContextPath() %>/room/room!oneIns.action?roomId=${bean.roomId}"><img src="<%=request.getContextPath() %>${bean.roomImg }"></a></dt>
						<dd><a target="_blank" href="<%=request.getContextPath() %>/room/room!oneIns.action?roomId=${bean.roomId}" class="h2">${bean.roomName}</a></dd>
						<dd class="styleD">[房型]${bean.roomType}&nbsp;&nbsp;${bean.roomSize}平米 </dd>
						<dd class="styleD">[楼层]${bean.floor}</dd>
						<dd class="styleE">[经纪人]</dd>
			    	</dl>
			    </div>
				<div id="sechouseinfobox1">
					<ul>
						<li >${bean.rentPrice}元月</li>
						<li ></li>
					</ul>
				</div>
			</div>
		</s:iterator>
		</div>
		
		<div id="rightbox">
			<div id="advbox_sec"><img src="/images/adv01.gif"></div>
		  	<div id="showbox_sec">
		  		<ul>
					<li class="styleA">推荐租房</li>
				</ul>
		 	 </div>
		  <div id="advbox_sec" style="margin-top:10px;"><img src="/images/adv02.gif"/></div>
		  <div id="advbox_sec" style="margin-top:10px;"><img src="/images/adv03.gif"/></div>
		</div>
	</div>
			
		</div>	
	</form>
	<script language="javascript" type="text/javascript">
		$(function() {
			$("#txtSearch").focus(function() {
				if ($(this).val() == '在结果中筛选')
					$(this).val('');
			});

			$("#txtSearch").blur(function() {
				if ($(this).val() == '')
					$(this).val('在结果中筛选');
			});

			fixSecState();

			$("#txtSearch").AutoComplete(
					"/Service/SuggestForMixHandler.html?strType=SellHouse&&KeyWord="
							+ $("#txtSearch").val(), "");
			$("#txtSecHouse").AutoComplete(
					"/Service/SuggestForMixHandler.html?strType=SellHouse&&KeyWord="
							+ $("#txtSecHouse").val(), "");
		});
	</script>
</body>
</html>
